// export interface ContextOrigin<T = any> {
//   request: {
//     body?: T
//   }
//   app: {
//     emit: (event: string, error: any, ctx: ContextOrigin) => void
//   }
// }

// export interface ContextEexra {
//   echo: (data: any) => void
//   seqErr: (error: unknown) => string
// }

// export type Context = ContextOrigin & ContextEexra

export interface Resp {
  code: number
  msg: string
  data?: any
  [propName: string]: any
}

export interface Msg {
  type: string
  data: object
  message: string
  filename?: string
}

export interface Obj {
  [key: string]: object
}

export interface TranslateParams {
  text: string
  to?: string
}
